package com.xqboss.apps.domain.guild;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.xqboss.apps.domain.BaseTable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.persistence.Id;
import java.io.Serializable;

/**
 * 公会
 * @author wangcong
 * @date 2023-11-01
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("公会")
public class Guild extends BaseTable implements Serializable{

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("公会id（递增初始值-100000）")
    private Long id;

    @ApiModelProperty("创建人")
    private Long createUserId;

    @ApiModelProperty("公会名称")
    private String name;

    @ApiModelProperty("公会等级(默认-1级)")
    private Integer level;

    @ApiModelProperty("状态（0正常，1解散）")
    private Integer status;

    @ApiModelProperty("公会头像")
    private String avatar;

    @ApiModelProperty("最大成员数量(默认-50)")
    private Integer maxNumber;

    @ApiModelProperty("当前成员数量")
    private Integer memberCount;

    @ApiModelProperty("公告")
    private String announcement;

    @ApiModelProperty("宣言")
    private String manifesto;

    @ApiModelProperty("是否需要审核（0_否 1_是）")
    private Boolean needVerify;

    @ApiModelProperty("人气值")
    private Integer popularity;
}